#pragma once
#include "stdio.h"
#include "stdlib.h"
#include "assert.h"

#define N 2
typedef int Sldatatype;
typedef unsigned int u16;

typedef struct seqlist
{
	Sldatatype* a;
	u16 size;
	u16 capcity;
}seqlist;

void SeqListInit(seqlist* psl);
void CheckCapacity(seqlist* psl);
void SeqListPushBack(seqlist* psl, Sldatatype x);
void SeqListPopBack(seqlist* psl);
void SeqListPrint(seqlist* psl);
void SeqListPushFront(seqlist* psl, Sldatatype x);
void SeqListPopFront(seqlist* psl);
int SeqListFind(seqlist* psl, Sldatatype x);
void SeqListInsert(seqlist* psl, u16 pos, Sldatatype x);
void SeqListErase(seqlist* psl, u16 pos);
void SeqListDestory(seqlist* psl);